<template>
    <div>
       
       <div class="wrap" @click="fun()">
           <img :src="img">
           <p ref="names">{{name}}</p>
       </div>

    </div>
</template>

<script>
export default {
    props:["img","name"],
    data(){
     return{
          obj:false
     }
    },
    methods:{
      fun(){
          this.$router.push("/work")
      },
      
    },
    mounted:function(){
      
    }
}
</script>

<style scoped>
.wrap{
  text-align: center;
  font-size: 0.12rem;
}
.wrap img{
    width: 0.53rem;
}
</style>